import requests

url = "https://club.bwplus.com.tw/api/resources/comment/addComment?resType=3"

payload = "resId=46493&commentId=&content=r3ervb3bv"
headers = {
  'Accept': '*/*',
  'Accept-Language': 'zh-CN,zh;q=0.9',
  'Authorization': 'token=3a8fdd2c4e654d37adf50895739f5845',
  'Cache-Control': 'no-cache',
  'Connection': 'keep-alive',
  'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
  'Origin': 'https://bwplus.com.tw',
  'Pragma': 'no-cache',
  'Referer': 'https://bwplus.com.tw/',
  'Sec-Fetch-Dest': 'empty',
  'Sec-Fetch-Mode': 'cors',
  'Sec-Fetch-Site': 'same-site',
  'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1'
}

for i in range(1000):
    payload = "resId=46493&commentId=&content= " + str(i)
    response = requests.request("POST", url, headers=headers, data=payload)
    print(response.text)

    payload = "resId=46493&commentId=16998&content= " + str(i)
    response = requests.request("POST", url, headers=headers, data=payload)
    print(response.text)

    payload = "resId=46493&commentId=17034&content= " + str(i)
    response = requests.request("POST", url, headers=headers, data=payload)
    print(response.text)


